//
//  WYFCommand.h
//  NetEaseFinancial
//
//  Created by 吴玉峰 on 8/17/15.
//  Copyright (c) 2015 吴玉峰. All rights reserved.
//

#import <Foundation/Foundation.h>

@class WYFJSBridge;

@interface WYFJSCommand : NSObject

@property (nonatomic, copy) NSString *serial;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSDictionary *params;
@property (nonatomic, copy) NSNumber *type;
@property (nonatomic, copy) NSDictionary *result;

- (instancetype)initCommandWithJsonObj:(NSDictionary *)jsonObj jsBridge:(WYFJSBridge *)jsBridge;

- (instancetype)initCommandWithName:(NSString *)name params:(NSDictionary *)params type:(NSNumber *)type;

- (void)setResultForJs:(NSDictionary *)result;

@end
